/**
 * 
 */
package com.primestone.cim.meterreadings.beans;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cesar.mateus
 *
 */
public class ReadingsQueryResult implements Serializable {

	private static final long serialVersionUID = -3789794096817618628L;
	
	private Integer rowId;
	private String idSocket;
	private String idDevice;
	private String idClient;
	private String uom;
	private String channel;
	private String descVar;
	private String interval;
	private String ke;
	private Date datetime;
	private String usageData;
	private String varType;
	private String message;
	private String code;
	private String aliasName;
	
	/**
	 * 
	 */
	public ReadingsQueryResult(){}
	
	/**
	 * 
	 * @param message
	 */
	public ReadingsQueryResult(String message) {
		super();
		this.message = message;		
	}
	
	/**
	 * @param idSocket
	 * @param idDevice
	 * @param idClient
	 * @param uom
	 * @param channel
	 * @param descVar
	 * @param interval
	 * @param ke
	 * @param datetime
	 * @param usageData
	 * @param varType 
	 * @param rowId 
	 * @param code 
	 * @param aliasName 
	 */
	public ReadingsQueryResult(Integer rowId, String idSocket, String idClient, String idDevice, String uom,
			String channel, String descVar, String interval, String ke,
			Date datetime, String usageData, String varType, String code, String aliasName) {
		super();
		this.rowId = rowId;
		this.idSocket = idSocket;
		this.idClient = idClient;
		this.idDevice = idDevice;		
		this.uom = uom;
		this.channel = channel;
		this.descVar = descVar;
		this.interval = interval;
		this.ke = ke;
		this.datetime = datetime;
		this.usageData = usageData;
		this.varType = varType;
		this.code = code;
		this.aliasName = aliasName;
	}
	
	/**
	 * @return the idSocket
	 */
	public String getIdSocket() {
		return this.idSocket;
	}
	/**
	 * @param idSocket the idSocket to set
	 */
	public void setIdSocket(String idSocket) {
		this.idSocket = idSocket;
	}
	/**
	 * @return the idDevice
	 */
	public String getIdDevice() {
		return this.idDevice;
	}
	/**
	 * @param idDevice the idDevice to set
	 */
	public void setIdDevice(String idDevice) {
		this.idDevice = idDevice;
	}
	/**
	 * @return the idClient
	 */
	public String getIdClient() {
		return this.idClient;
	}

	/**
	 * @param idClient the idClient to set
	 */
	public void setIdClient(String idClient) {
		this.idClient = idClient;
	}

	/**
	 * @return the uom
	 */
	public String getUom() {
		return this.uom;
	}
	/**
	 * @param uom the uom to set
	 */
	public void setUom(String uom) {
		this.uom = uom;
	}
	/**
	 * @return the channel
	 */
	public String getChannel() {
		return this.channel;
	}
	/**
	 * @param channel the channel to set
	 */
	public void setChannel(String channel) {
		this.channel = channel;
	}
	/**
	 * @return the descVar
	 */
	public String getDescVar() {
		return this.descVar;
	}
	/**
	 * @param descVar the descVar to set
	 */
	public void setDescVar(String descVar) {
		this.descVar = descVar;
	}
	/**
	 * @return the interval
	 */
	public String getInterval() {
		return this.interval;
	}
	/**
	 * @param interval the interval to set
	 */
	public void setInterval(String interval) {
		this.interval = interval;
	}
	/**
	 * @return the ke
	 */
	public String getKe() {
		return this.ke;
	}
	/**
	 * @param ke the ke to set
	 */
	public void setKe(String ke) {
		this.ke = ke;
	}
	/**
	 * @return the datetime
	 */
	public Date getDatetime() {
		return this.datetime;
	}
	/**
	 * @param datetime the datetime to set
	 */
	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}
	/**
	 * @return the usageData
	 */
	public String getUsageData() {
		return this.usageData;
	}
	/**
	 * @param usageData the usageData to set
	 */
	public void setUsageData(String usageData) {
		this.usageData = usageData;
	}
	
	/**
	 * @return the varType
	 */
	public String getVarType() {
		return this.varType;
	}

	/**
	 * @param varType the varType to set
	 */
	public void setVarType(String varType) {
		this.varType = varType;
	}

	/**
	 * @return the rowId
	 */
	public Integer getRowId() {
		return this.rowId;
	}

	/**
	 * @param rowId the rowId to set
	 */
	public void setRowId(Integer rowId) {
		this.rowId = rowId;
	}

	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}

	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the aliasName
	 */
	public String getAliasName() {
		return this.aliasName;
	}

	/**
	 * @param aliasName the aliasName to set
	 */
	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("ReadingsQueryResult [");
		if (this.rowId != null)
			builder.append("rowId=").append(this.rowId);
		if (this.idSocket != null)
			builder.append("idSocket=").append(this.idSocket).append(", ");
		if (this.idDevice != null)
			builder.append("idDevice=").append(this.idDevice).append(", ");
		if (this.idClient != null)
			builder.append("idClient=").append(this.idClient).append(", ");
		if (this.uom != null)
			builder.append("uom=").append(this.uom).append(", ");
		if (this.channel != null)
			builder.append("channel=").append(this.channel).append(", ");
		if (this.descVar != null)
			builder.append("descVar=").append(this.descVar).append(", ");
		if (this.interval != null)
			builder.append("interval=").append(this.interval).append(", ");
		if (this.ke != null)
			builder.append("ke=").append(this.ke).append(", ");
		if (this.datetime != null)
			builder.append("datetime=").append(this.datetime).append(", ");
		if (this.usageData != null)
			builder.append("usageData=").append(this.usageData);
		if (this.varType != null)
			builder.append("varType=").append(this.varType);
		if (this.message != null)
			builder.append("message=").append(this.message);
		builder.append("]");
		return builder.toString();
	}

}
